#define TOP_RADIUS 10.0
#define BASE_RADIUS 5.0

GLUquadricObj *table;

void init_table(){
    table = gluNewQuadric();
    gluQuadricDrawStyle(table, GLU_FILL);
}

void renderTable(){
    glMaterialfv(GL_FRONT, GL_SPECULAR, gold_specular);
    glMaterialfv(GL_FRONT, GL_AMBIENT, gold_ambient);
    glMaterialfv(GL_FRONT, GL_DIFFUSE, gold_diffuse);
    glMaterialf(GL_FRONT, GL_SHININESS, gold_shininess);

    glPushMatrix();
        glRotatef(90.0f, 1.0, 0.0, 0.0);
        glRotatef(90.0f, 0.0, 0.0, 1.0);
        glTranslatef(5.0f, -18.0f, 0.0f);
        if(OBJECT_MODE == OBJECT_SHADING) {
            glutSolidCylinder(table,BASE_RADIUS,TOP_RADIUS, 10.0, 10, 10);
        }
        else if(OBJECT_MODE == OBJECT_WIREFRAME) {
            glutWireCylinder(table,BASE_RADIUS,TOP_RADIUS, 10.0, 10, 10);
        }
    glPopMatrix();

    glPushMatrix();
        glTranslatef(30.0f, -10.0f, -20.0f);
        glScalef(1.5,4.5,2.0);
        if(OBJECT_MODE == OBJECT_SHADING) {
            glutSolidCube(10.0);
        } else if (OBJECT_MODE == OBJECT_WIREFRAME) {
            glutWireCube(10.0);
        }
    glPopMatrix();
}


void renderSomething() {
    glPushMatrix();
        glTranslatef(40.0,1.0,-2.0);
        if(OBJECT_MODE == OBJECT_SHADING) {
            glutSolidTeapot(2.5);
        } else if (OBJECT_MODE == OBJECT_WIREFRAME) {
            glutWireTeapot(2.5);
        }

        glTranslatef(-2.0,0.0,-2.2);
        if(OBJECT_MODE == OBJECT_SHADING) {
            glutSolidTeapot(1.8);
        } else if (OBJECT_MODE == OBJECT_WIREFRAME) {
            glutWireTeapot(1.8);
        }


        glTranslatef(-3.8,0.0,1.2);
        if(OBJECT_MODE == OBJECT_SHADING) {
            glutSolidTeapot(1.3);
        } else if (OBJECT_MODE == OBJECT_WIREFRAME) {
            glutWireTeapot(1.3);
        }
    glPopMatrix();
}
